public class Main1 {
    public static void main(String[] args) {

        //write your code here........
        long sum=0;
        long a=0;
        for (int i = 0; i < 10; i++) {
            a+=9*Math.pow(10,i);
            sum=sum+a;
        }
        System.out.println(sum);
    }
}